package com.honeybee.cloud.framework.oauth.user;

import com.honeybee.cloud.framework.oauth.authority.OauthAuthority;
import lombok.Data;
import org.springframework.security.core.userdetails.UserDetails;

import java.util.List;

/**
 * @Description 鉴权user
 * @Author DELL
 * @Create 2018-12-25
 * @Since 1.0.0
 */
@Data
public class OauthUser implements UserDetails {

    private List<OauthAuthority> authorities;

    private String password;

    private String username;

    private boolean accountNonExpired=true;

    private boolean accountNonLocked=true;

    private boolean credentialsNonExpired=true;

    private boolean enabled=true;

    private Long userId;


}
